<template>
	<div>
		<div class="top">
			<img src="@as/img/zuzhi_wode_ptt@2x.png" alt="">
		</div>
		<div class="list">
			<div class="box">
				<div class="info" v-for="(item,index) in SuperviseList" :key="index" @click="reportProblems(item)">
					<span>{{item.class_name}}</span>
					<img src="@as/img/zuzhi_wode_yb@2x.png" alt="" >
				</div>
				<div class="nomo" v-if="SuperviseList.length==0">
					<span>暂无数据</span>
				</div>
			</div>
		</div>
	</div>
</template>

<script>
	export default {
			data() {
				return {
					SuperviseList:[]
				}
			},
			mounted() {

			},
			methods: {
				reportProblems(item){
					this.$router.push({ path: '../organization/reportProblems' , query: item })
				},
					// 通知发布列表 
				async getSupervise () { 
					let that = this;
					try {
						let params = {
							org_id:JSON.parse(Cookies.get('user_71ydj')).organization_id,
						}
						const url = `/app/report/report_class`  
						let res = await that.$http.get(url, params) 
						that.$progress.done()
						if (res.code === 200) {
							that.SuperviseList = res.data
						}
					} catch (e) {
						console.log('​catch -> e', e)
					}
				},
			},
			created(){
				this.getSupervise()
			}
	}
</script>

<style scoped lang="scss">
	.nomo {
		width: 100%;
		font-size: 14px;
		color: #dddddd;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-top: 24px;
	}
	.top{
		width:100%;
		height:211.5px;
		overflow: hidden;
		position: relative;
		z-index: 10;
		img{
			width:100%;
			height:100%;
		}
	}
	.back{
		width:100%;
		padding: 15px 15px;
		box-sizing: border-box;
		display: flex;
		justify-content: flex-start;
		position: absolute;
		top:0;
		left: 0;
		z-index: 11;
		img{
			width:12px;
			height:21.5px;
		}
	}
	.list{
		width:100%;
		padding: 15px 15px;
		box-sizing: border-box;
		justify-content: center;
		position: absolute;
		left:0;
		top:175px;
		.box{
			width:100%;
			padding: 38px 15px 15px 15px;
			box-shadow: 0px 6px 10px 2px #f1f1f1;
			display: flex;
			flex-direction: column;
			align-items: center;
			.info{
				width:100%;
				height:42.5px;
				display: flex;
				justify-content: space-between;
				padding: 0 15px;
				align-items: center;
				border-bottom: 1px solid #ddd;
				span{
					font-size: 14px;
					color: #000;
				}
				img{
					width:6.5px;
					height:10px;
				}
			}
		}
	}
</style>